{include file="../Common/header.html"}
	<link rel="stylesheet" href="./Public/Home/Css/list.css" />

{include file='../Common/nav.html'}

	
	<div id='location'>
		<a href="index.php?c=list&cid=0">全部分类</a>
		{section loop=$parentsCate name=k}
			{if $smarty.section.k.last}
			&gt;&nbsp;{$parentsCate[k].title}&nbsp;&nbsp;
			{else}
			&gt;&nbsp;<a href="index.php?c=list&cid={$parentsCate[k].cid}">{$parentsCate[k].title}</a>&nbsp;&nbsp;
			{/if}
		{/section}	
	</div>
	
<!--------------------中部-------------------->
	<div id='center'>
		<div id='left'>
			<div id='cate-list'>
				<p class='title'>按分类查找</p>
				<ul>
					{foreach from=$category item=v }
					<li>
						<a href="index.php?c=list&cid={$v.cid}">{$v.title}</a>
					</li>
					{/foreach}
				</ul>
			</div>
			<div id='answer-list'>
				<ul class='ans-sel'>
					<li {if $smarty.get.w ==0 } class='on' {/if} >
						<a href="./index.php?c=list&cid={$smarty.get.cid}&w=0">待解决问题</a>
					</li>
					<li  {if $smarty.get.w ==1 } class='on' {/if} >
						<a href="./index.php?c=list&cid={$smarty.get.cid}&w=1">已解决</a>
					</li>
					<li  {if $smarty.get.w ==2 } class='on' {/if} >
						<a href="./index.php?c=list&cid={$smarty.get.cid}&w=2">高悬赏</a>
					</li  >
					<li  {if $smarty.get.w ==3 } class='on' {/if} >
						<a href="./index.php?c=list&cid={$smarty.get.cid}&w=3">零回答</a>
					</li>
				</ul>
				<!-- 待解决问题 -->
				<table>
					<tr>
						<th class='t1'>标题</th>
						<th>回答数</th>
						<th>时间</th>
					</tr>
					{foreach from=$askData item=v}
						<tr>
							<td class='t1 cons'>
								<a href="./index.php?c=show&asid={$v.asid}">
									<b>{$v.reward}</b>{$v.content}</a>&nbsp;&nbsp;[{$v.title}]
							</td>
							<td>{$v.answer}</td>
							<td>{$v.time|date_format:"%Y-%m-%d %H:%M:%S"}</td>
						</tr>
					{/foreach}

					<tr class='page'>
						<td colspan='3'>
							<a href="">1</a>
							<a href="">2</a>
							<a href="">3</a>
						</td>
					</tr>
				</table>

			</div>
		</div>

		<!-- 右侧 -->
{include file='../Common/right.html'}
<!-- ---右侧结束---- -->
	</div>
<!--------------------中部结束-------------------->

{include file="../Common/footer.html"}